/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2012/07/26
* File: RenderTT.cpp
* Blog: http://www.cnblogs.com/zengqh/
**/

#include "RenderTT.h"

RenderTT::RenderTT(const Dimension2Di& size)
: _size(size)
{

}

RenderTT::~RenderTT()
{

}

const std::string& RenderTT::getName() const
{
	return _caption;
}

void RenderTT::setName(const std::string& name)
{
	_caption = name;
}

s32 RenderTT::getWidth() const
{
	return _size._width;
}

s32 RenderTT::getHeight() const
{
	return _size._height;
}

void RenderTT::addRenderTargetListener(RenderTargetListener* listener)
{
	_render_target_listener_list.push_back(listener);
}